#sidebar {
    width: 360px;
    position: absolute;
    z-index: 1000;
    background-color: #fafafa;
    font-size: 0.8rem;
    top: 36px;
    right: 0;
    bottom: 36px;
    overflow: scroll;
}

.sidebar-hide {
    display: none;
}

.sidebar-title {
    background-color: #2F6BFF;
    color: white;
    display: inline-flex;
    width: 100%;
    font-size: 0.8rem;
    align-items: center;
}

.sidebar-title p{
    margin: 0;
}

#sidebar-title {
    text-align: left;
    padding: 10px;
    font-size: 1rem;
    margin: 0px;
}

.sidebar-title-tabcontainer {
    display: inline-flex;
}

.sidebar-title-tab {
    margin-left: 15px;
    font-size: 0.8rem;
}

.sidebar-title-tab-active{
    font-size: 1rem;
    border-bottom-color: #f3e1e1;
    border-bottom-width: 3px;
    border-bottom-style: inset;
}

.sidebar-tab-content
{
    
}

.sidebar-tab-content-title{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 1rem;
    margin: 10px;
}

.sidebar-tab-content-summary {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.8rem;
    margin: 8px 10px 8px 10px;
}

#sidebar-close{
    position: absolute;
    right: 0;
}

.sidebar-tab{
    display: none;
}

.sidebar-tab-active
{
    display: block;
}

#sidebar-summary-title {
    text-align: left;
    padding: 15px;
    margin: 0px;
}

#sidebar-summary {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#sidebar-summary-content {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 15px 48px 15px 15px;
}

#sidebar-summary-arrow {
    position: absolute;
    width: 32px;
    height: 32px;
    right: 8px;
}

hr {
    margin-top: 0;
    margin-bottom: 0;
}

#sidebar-gallery-title {
    margin: 0px;
    padding: 15px;
}

.sidebar-gallery-images {
    padding: 15px;
}

.sidebar-gallery-img {
    width: calc(25% - 4px);
}

.sidebar-gallery-img-right {
    margin-left: 4px;
}

#sidebar-second-level {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: azure;
    top: 0px;
}

.sidebar-second-level-back {
    display: inline-flex;
    align-items: center;
    padding: 15px;
}

.sidebar-second-level-back p {
    margin: 0;
}

#sidebar-second-level-title {
    position: absolute;
    text-align: center;
    padding: 15px;
    left: 5rem;
    top: 0;
    right: 5rem;
    margin: 0;
}

#sidebar-second-level-content {
    padding: 15px;
    text-indent: 1.6rem;
}

.sidebar-second-level-hide {
    visibility: hidden;
}

.sidebar-second-level-show {
    visibility: visible;
}

#gallery {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

#gallery-back {
    display: inline-flex;
    align-items: center;
    color: white;
    background-color: black;
    padding: 8px;
    margin-left: 12px;
}

.gallery-title {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px;
    align-items: center;
    display: flex;
}

.gallery-carousel {
    position: relative;
    padding-top: 24px;
    padding-bottom: 24px;
    margin-left: 15%;
    margin-right: 15%;
    height: calc(75% - 48px);
}

#gallery-carousel {
    height: 100%;
}

.gallery-carousel-slide {
    text-align: center;
}

.gallery-carousel-slide img {
    height: 100%;
}

.gallery-thumbs-slide {
    text-align: center;
}

.gallery-thumbs-slide img {
    height: 100%;
}

.gallery-thumbs {
    width: 100%;
    height: 25%;
}

#gallery-thumbs {
    height: 100%;
}

.gallery-show {
    visibility: visible;
}

.gallery-hide {
    visibility: hidden;
}